package day07;

/**
 * Created by Shinelon on 2016/9/20.
 */
public class ICBC extends ATM {

    public ICBC() {
        setName("工商银行");
        setMenu("4,充话费");
    }

    @Override
    public void other(Card card){
        if (card instanceof ICBCCard) {
            System.out.println("请输入充值金额");
            int read = scan.nextInt();
            card.setBalance(card.getBalance() - read);
        } else
            System.out.println("暂不支持该功能");
    }

}
